using Avalonia;

namespace Avalonia.WindowStyle.Extensions;

public static class PathIconAssist
{
    public static readonly AvaloniaProperty<string> IconProperty =
        AvaloniaProperty.RegisterAttached<AvaloniaObject, string>(
            "Icon", typeof(PathIconAssist));
    
    public static void SetIcon(AvaloniaObject element, string value)
        => element.SetValue(IconProperty, value);

    public static string GetIcon(AvaloniaObject element)
        => element.GetValue<string>(IconProperty);
}